package org.ht.controller.back;

import javax.annotation.Resource;

import org.ht.service.back.TestService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/backTest")
public class Test {

	@Resource
	private TestService testService;
	
	@RequestMapping("/test")
	public String test() {
		System.out.println("这是一笔测试控制层");
		System.out.println("连接成功有用户："+testService.count());
		return "view/bk_index";
	}
	
	@RequestMapping("/check")
	public String test1() {
		System.out.println("这是一笔测试控制层2");
		//System.out.println("连接成功有用户："+testService.count());
		return "view/bk_index";
	}
}
